
<?php echo $this->Html->script(array('js-image-slider'));?>
 <?php echo $this->Html->css(array("js-image-slider"));?>
<div id="content">
	<h3 class="widgettitle"><span><?php echo $this->Html->link('Trang chủ',array('controller'=>'news','action'=>'home'));?> » <?php echo $this->Html->link('CÔNG TRÌNH - DỰ ÁN',array('controller'=>'plans'));?></span></h3>
    <div id="content-detail">
		<?php if($gal){?>
	<h2 class="tilte"><?php echo $gal['Plan']['name']?></h2>
	<div class="postmeta-primary"> <span class="meta_date">
	  Ngày đăng<?php echo date('d/m/Y',strtotime($gal['Plan']['ngaydang']));?></span>&nbsp;
	</div>
	<div class="entry clearfix">
		<p align="justify"><b>Địa chỉ:&nbsp<?php echo $gal['Plan']['address'];?></b></p>
		<p align="justify"><b>Chủ thầu:&nbsp<?php echo $gal['Plan']['contractor'];?></b></p>
		<?php echo $gal['Plan']['description'];?>
	</div>
	<br>
	<p>Ảnh của dự án:</p>
	 <div id="sliderFrame">
        <div id="ribbon"></div>
        <div id="slider">
           <?php for($i=0;$i<count($gal['Image']);$i++){?>
				<img src="<?php echo $this->webroot;?>files/uploads/images/<?php echo $gal['Image'][$i]['url'];?>" alt="<?php echo $gal['Image'][$i]['note'];?>"/>
            <?php }?>
        </div>
        <div id="htmlcaption" style="display: none;">
            <em>HTML</em> caption. Back to <a href="http://www.menucool.com/">Menucool</a>.
        </div>

        <!--thumbnails-->
        <div id="thumbs">
			<?php for($i=0;$i<count($gal['Image']);$i++){?>
            <div class="thumb"><img src="<?php echo $this->webroot;?>files/uploads/images/<?php echo $gal['Image'][$i]['url'];?>" /></div>
			<?php }?>
	   </div>
    </div>
	<div style="margin: 5px 0;display: block;width: 100%; text-align: right;">
<a href="javascript: window.history.go(-1);"><img src="<?php echo $this->webroot;?>img/back.png"/>&nbsp;Trang trước</a>&nbsp;&nbsp;
<a href="#main"><img src="<?php echo $this->webroot;?>img/backtop.png"/>&nbsp;Lên đầu trang</a>
</div>
</div>
<div class="clr"></div>
 <?php }else{?>
<div class="alert-messenger" style="padding-top: 50px;">Bài viết không tồn tại!!!</div>
<?php }?>
</div>
 <?php echo $this->element('news-right');?>

